package com.wsx.ones.akka.domian;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author wangshuaixin
 * @Title: com.wsx.ones.akka.domian.Message
 * @Description: TODO
 * @date 2019/05/10
 */
@NoArgsConstructor
@AllArgsConstructor
public class Message {

    @Getter private int id;
    @Getter private String name;
    @Getter private String result;

    public Message(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public Message result(String result) {
        this.result = result;
        return this;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
